<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "https://www.springframework.org/dtd/spring-beans-2.0.dtd">

<beans>

	<bean id="constructorOverrides"
		class="org.springframework.beans.factory.xml.ConstructorInjectedOverrides"
		autowire="autodetect">
	
		<!--
			We combine a setter method with constructor
			autowiring
		-->
		<property name="setterString"><value>from property element</value></property>
	
		<lookup-method name="createFactoryMethods" bean="factoryMethods" />	
	
	</bean>


	<bean id="jenny" class="org.springframework.beans.testfixture.beans.TestBean"
		scope="singleton">
		<property name="name"><value>Jenny</value></property>
		<property name="age"><value>30</value></property>
	</bean>

	<bean id="factoryMethods"
		class="org.springframework.beans.testfixture.beans.FactoryMethods"
		factory-method="newInstance"
		scope="prototype">
		<constructor-arg index="0"><ref bean="jenny"/></constructor-arg>
	</bean>

</beans>
